<script setup>
import { useRouter } from 'vue-router';

const router = useRouter();

const goToHome = () => {
  router.push('/');
};
</script>

<template>
  <div class="not-found-container">
    <div class="not-found-content">
      <h1 class="not-found-title">404</h1>
      <p class="not-found-desc">抱歉，您访问的页面不存在</p>
      <el-button type="primary" @click="goToHome">
        <el-icon><Back /></el-icon>
        返回首页
      </el-button>
    </div>
  </div>
</template>

<style scoped>
.not-found-container {
  height: calc(100vh - var(--header-height) - 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.not-found-content {
  padding: 40px;
}

.not-found-title {
  font-size: 120px;
  font-weight: 700;
  margin: 0;
  color: var(--primary-color);
  line-height: 1;
}

.not-found-desc {
  font-size: 20px;
  margin: 20px 0 30px;
  color: var(--text-secondary);
}
</style> 